﻿@{
    ViewBag.Title = "_ProductVariantInfo_CreateOrEdit";
}


<div>
    <label>Name</label>
    <input type="text" data-bind="value:Name"/>
    <p data-bind="validationMessage: Name" class="text-error " ></p>
    
    <label>Sku</label>
    <input type="text" data-bind="value:Sku"/>

    <label>SkuPrice</label>
    <input type="text" data-bind="value:Price"/>
    <p data-bind="validationMessage: Price" class="text-error " ></p>
  
    <label>Stock Quantity</label>
    <input type="text" data-bind="value:StockQuantity"/>
    <p data-bind="validationMessage: StockQuantity" class="text-error " ></p>

    <label>DisplayOrder</label>
    <input type="text" data-bind="value:DisplayOrder"/>
    <p data-bind="validationMessage: DisplayOrder" class="text-error " ></p>
     
    
    <label>Picture</label>
    <img data-bind="attr:{src: PictureUrl}" /> 
    <p data-bind="validationMessage: PictureId" class="text-error " ></p>
    
    <ul id="manualUploadModeExample" class="unstyled"></ul>

  
    <label class="checkbox">
        <input type="checkbox" data-bind="checked: Published" > Is Published
    </label>
</div>

<input type="button"  data-bind="value:'@T("Admin.ProductVariant.Create.Button.Title")', click:SaveProductVariantInfo" class="btn btn-primary"/>
<a  data-bind="attr:{href:'/admin/product/edit?productid='+ProductId()+'&tab=pv'}" class="btn btn-link">@T("Admin.ProductVariant.Save.Back")</a>